<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>网格添加页面</title>
    <link rel="stylesheet" href="../../../yl/index.css" />
    <!-- 布局样式 -->
    <link rel="stylesheet" href="../../../yl/style.css" />
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../yl/mobile.css" />
    <link rel="stylesheet" href="../../../yl/easyui.css" />
    <link rel="stylesheet" href="../../../yl/icon.css" />
    <style>
        .el-descriptions__label {
            width: 200px;
        }
    </style>
</head>

<body>
    <!-- <div id="app"> -->
    <div class="easyui-navpanel" id="app" v-cloak>
        <header>
            <div class="m-toolbar">
                <div class="m-title">查看留言详情</div>
            </div>
        </header>
        <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
            id="MainTable" ref="MainTable">
            <div class="yl-main">
                <div class="table_titel">
                    <div class="titel">留言信息</div>
                </div>
                <el-descriptions :column="2" size="large" border>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">留言标题</div>
                        </template>
                        <span style="padding: 15px;">{{dataForm.Message_Title}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">留言类型</div>
                        </template>
                        <span style="padding: 15px;">{{dataForm.Message_Categroy}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">来源</div>
                        </template>
                        <span style="padding: 15px;">{{dataForm.Message_Resource}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">留言时间</div>
                        </template>
                        <span style="padding: 15px;">{{dataForm.Create_Datetime}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">留言人</div>
                        </template>
                        <span style="padding: 15px;" :style="{color: dataForm.Is_Anonymous == '是'?'red':''}">{{dataForm.Message_Name || '匿名留言'}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">联系方式</div>
                        </template>
                        <span style="padding: 15px;" :style="{color: dataForm.Is_Anonymous == '是'?'red':''}">{{dataForm.Message_Contact || '匿名留言'}}</span>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">留言内容</div>
                        </template>
                        <el-input type="textarea" disabled :autosize="{ minRows: 6}" placeholder="留言内容" v-model="dataForm.Message_Content"></el-input>
                    </el-descriptions-item>
                    
                </el-descriptions>
                <div id="ChildTable">
                    <div class="table_titel">
                        <div class="titel">附件</div>
                    </div>
                    <el-table id="table" border max-height="450" tooltip-effect="dark" :data="childDataForm">
                        <el-table-column min-width="180" prop="Attachment_SerialNumber" label="附件流水号"></el-table-column>
                        <el-table-column min-width="180" prop="Attachment_Path" label="附件名称"></el-table-column>
                        <el-table-column width="200" fixed="right" align="center" label="操作">
                            <template v-slot="{row}">
                                <el-button type="primary" size="small" @click="preview(row)">
                                    在线预览
                                </el-button>
                                <el-button type="success" size="small" @click="download(row)">
                                    下载附件
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
                <div class="table_titel">
                    <div class="titel">回复信息<span v-if="dataForm.Create_Comment_Datetime == ''" style="color: red;">（未回复）</span>  </div>
                </div>
                <el-descriptions  v-if="dataForm.Create_Comment_Datetime != ''" :column="1" size="large" border>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">回复内容</div>
                        </template>
                        <el-input type="textarea" disabled :autosize="{ minRows: 6}" placeholder="留言内容" v-model="dataForm.Comment_Content"></el-input>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">回复时间</div>
                        </template>
                        <span style="padding: 15px;">{{dataForm.Create_Comment_Datetime}}</span>
                    </el-descriptions-item>
                </el-descriptions>   
            </div>
        </div>
        <yl-online-preview :file-url="fileUrl" v-model="showDialog"></yl-online-preview>
        <footer class="botton-ann">
            <el-button @click="goBack">返回</el-button>
        </footer>
    </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/show.js"></script>

</html>